package ch7.ex15;

import static ch7.print.Print.*;

class Glyph{
	void draw(){
		println("Glyph.draw()");
	}
	public Glyph() {
		println("Glyph() before draw()");
		draw();
		println("Glyph() after draw()");
	}
}

class RoundGlyph extends Glyph{
	private int radius = 1;
	public RoundGlyph(int r) {
		radius = r;
		println("RoundGlyph.RoundGlyph(), radius = " + radius);
	}
	void draw(){
		println("RoudGlyph.draw(), radius = " + radius);
	}
}
public class PolicyConstructors {
	public static void main(String... args){
		new RoundGlyph(5);
	}
}
